package articles

import "gorm.io/plugin/soft_delete"

type Cate struct {
	ID       int                    `gorm:"column:id;primaryKey" json:"id"`
	Name     string                 `gorm:"column:name" json:"name"`
	CreateAt int                    `gorm:"column:create_time;comment:创建时间;autoCreateTime;<-:create;type:int" json:"create_time"`
	UpdateAt int                    `gorm:"column:update_time;comment:最后更新时间;autoUpdateTime;autoCreateTime;type:int" json:"update_time"`
	DeleteAt *soft_delete.DeletedAt `gorm:"column:delete_time;comment:删除时间;default:null;" json:"delete_time"`
}

func (p *Cate) TableName() string {
	return "p_article_category"
}
